{include file="header.html"}
<div id="page_main" class="main-right">
  <div id="rightTop">
    <p>{$lang.refund_manage}</p>
    <ul class="subnav">
      <li><a href="{url route='refund/index'}">{$lang.manage}</a></li>
      <li><span>退款详情</span></li>
    </ul>
  </div>
  <div class="tdare clearfix page-refund">
    <div id="dataFuncs" class="datafuncs" style="width:768px; float:left">
      <div class="public refund_form clearfix">
        <ul class="refund_info">
          <li>退款编号：{$refund.refund_sn}</li>
          <li>申请时间：{$refund.created|date_format:"%Y.%m.%d %H:%M:%S"}</li>
          <li>退款状态：{$refund.status_label}</li>
          <li>订单总额：{$refund.total_fee|price_format} <span class="gray">(含运费)</span></li>
          <li>退款金额：{$refund.refund_goods_fee|price_format} <span class="gray">(商品总额：{$refund.goods_fee|price_format})</span></li>
          <li>退<ins style="margin:0 6px;">运</ins>费：{$refund.refund_shipping_fee|price_format} <span class="gray">(运费总额：{$refund.shipping_fee|price_format})</span></li>
          <li>收货情况：{$refund.shipped_label}</li>
          <li>退款原因：{$refund.refund_reason}</li>
          <li>退款说明：{$refund.refund_desc}</li>
        </ul>
        <div class="refund_message clearfix"> 
          <!--{if !in_array($refund.status, ['SUCCESS','CLOSED'])}-->
          <form method="post">
            <input type="hidden" name="id" value="{$refund.refund_id}" />
            <ul class="message_form clearfix">
              <li>退款金额：
                <input type="text" name="refund_goods_fee" value="{$refund.refund_goods_fee}" class="text" />
                <span class="gray">最多{$refund.goods_fee}元，客服与买卖双方协商后的商品退款金额。</span></li>
              <li>退<ins style="margin:0 6px">运</ins>费：
                <input type="text" name="refund_shipping_fee" value="{$refund.refund_shipping_fee}" />
                <span class="gray">最多{$refund.shipping_fee}元，如果不是商品质量问题，买家承担寄送运费，则建议为0元。</span></li>
              <li>处理意见：
                <textarea name="content" class="text"></textarea>
              </li>
              <li class="refund-submit">
                <input onclick="javacript:return confirm('{$lang.note_for_submit}');" type="submit" value="提交" class="refund_message_btn" style="color:#fff;"/>
              </li>
            </ul>
          </form>
          <!--{/if}-->
          <div class="message_list"> 
            <!--{foreach from=$refund.message item=message name=fe_message}-->
            <div class="title clearfix">
              <h3>{if $message.owner_id==$visitor.userid}{$lang.self}{else}{$lang.{$message.owner_role}}{/if}</h3>
              <span>{$message.created|date_format:"%Y.%m.%d %H:%M:%S"}</span> </div>
            <div class="content" {if $smarty.foreach.fe_message.last} style="border-bottom:1px #ddd solid"{/if}> {$message.content} 
              <!--{if $message.image}-->
              <p style="margin-top:10px;"><img src="{$message.image|url_format}" width="200" /></p>
              <!--{/if}--> 
            </div>
            <!--{/foreach}--> 
          </div>
          <div class="pageLinks clearfix mt20"> {if $refund.message}{include file="page.bottom.html"}{/if} </div>
        </div>
      </div>
    </div>
    <div class="order_info">
      <h3>订单信息</h3>
      <ul class="clearfix">
        <li>订单编号：{$order.order_sn}</li>
        <li>下单时间：{$order.add_time|date_format:"%Y.%m.%d %H:%M:%S"}</li>
        <li>支付方式：{$order.payment_name}</li>
        <li>订单总额：{$order.order_amount|price_format}</li>
        <li>商品总额：{$order.goods_amount|price_format}</li>
        <li>物流费用：{$order.shipping.shipping_fee|price_format}</li>
        <li>商品调价：{if $order.adjust_amount ge 0}+{else}-{/if}{$order.adjust_amount|price_format}</li>
        <li>商品优惠：{$order.discount|price_format}</li>
        <li>卖家信息：<a href="{url route='store/index' id=$order.seller_id baseUrl=$homeUrl}" target="_blank">{$order.seller_name}</a></li>
        <li>买家昵称：{$order.buyer_name}</li>
        <li>收货人姓名：{$order.shipping.consignee}</li>
        <li>收货人电话：{$order.shipping.phone_tel}</li>
        <li>收货人手机：{$order.shipping.phone_mob}</li>
        <li>运送地点：{$order.shipping.region_name}{$order.shipping.address}</li>
        <li>物流方式：{$order.shipping.shipping_name}</li>
        <li>物流公司：{$order.express_company}</li>
        <li>物流单号：{$order.express_no}</li>
      </ul>
      <h3>订单商品</h3>
      <div class="refund-order-goods"> 
        <!--{foreach from=$order.orderGoods item=goods}-->
        <div class="each clearfix">
          <div class="pic"><a href="{url route='goods/index' id=$goods.goods_id baseUrl=$homeUrl}"><img src="{$goods.goods_image|url_format}" width="60" height="60" /></a></div>
          <div class="goodsinfo"> <a href="{url route='goods/index' id=$goods.goods_id baseUrl=$homeUrl}" target="_blank">{$goods.goods_name|escape|truncate:60}</a> <br />
            规格：{if $goods.specification}{$goods.specification}{else}默认规格{/if} <br />
            价格：{$goods.price|price_format} X {$goods.quantity} 件 </div>
        </div>
        <!--{/foreach}--> 
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
{include file="footer.html"} 